const mutations = {
    increment(state) {
        state.count++
    },
    // 设置用户信息
    SET_userInfo(state, result) {
        // console.log('进入设置用户mutatios')
        state.userInfo = result
        // console.log(state.userInfo)
    },
    SET_TimeList(state, result) {
        state.TimeList = result
    },
    SET_SchoolList(state, result) {
        state.SchoolList = result
    },
    SET_WeekPlan(state, result) {
        state.WeekPlan = result
    },
    SET_SchoolWeek(state, result) {
        state.SchoolWeek = result
    },
    SET_NextPlan(state, result) {
        state.NextPlan = result
    },
    SET_StartSign(state, result) {
        state.StartSign = result
    },
    SET_EndSign(state, result) {
        state.EndSign = result
    },
    SET_AddLA(state, result) {
        state.getLatitude = result
    },
    SET_AddLO(state, result) {
        state.getLonitude = result
    },
    SET_changWeekStatus(state, result) {
        state.changWeekStatus = result
    },
    SET_SchoolWeekList(state, result) {
        state.SchoolWeekList = result.reverse()
    },
    SET_checkInSchool(state, result) {
        state.checkInSchool = result
    },
    SET_CountTime(state, result) {
        state.CountTime = result
    },
    SET_GetCountSignList(state, result) {
        state.getCountSignList = result
    },
    SET_address(state, result) {
        state.address = result
    },
    SET_BuildingList(state, params) {
        // type 1上午 2下午
        if (params.type === 1) {
            state.BuildingList.forenoon = params.result
        }
        if (params.type === 2) {
            state.BuildingList.afternoon = params.result
        }
    },
    SET_CLOCK_STATUS(state, status) {
        state.NextPlan.CLOCK_STATUS = status
    }
}
export default mutations
